
package assigment2;

public class Personal {
    private String name;
    private String rollno;
    private String classno;
    private String email;

   
    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getClassno() {
        return classno;
    }

    public void setClassno(String classno) {
        this.classno = classno;
    }

    public String getRollno() {
        return rollno;
    }

    public void setRollno(String rollno) {
        this.rollno = rollno;
    }


    @Override
    public String toString() {

        return "Student{" + "name=" + name + ", rollNo=" + rollno + ", ClassNo=" + classno + ", email=" + email  + '}' + "\n";
    }

}
